home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 23
/
Aminet 23 (1998)(GTI - Schatztruhe)[!][Feb 1998].iso
/
Aminet
/
comm
/
net
/
ACS_Notify.lha
/
NotifyArexx.amicomsys
< prev
next >
Wrap
Text File
|
1997-12-06
|
4KB
|
122 lines
/*
$VER: Notify User [Arexx script] V0.19ß (6-12-97) © Copex - aWo
Bug Reports ect to -: copex@online.u-net.com
Uppdates/Bugfixes :- http:www.online.u-net.com/updates/
*/
player = 'C:Play16 <>NIL:' /* Mod or Sample Player With Path .*/
soundfileC = 'Internet:amicom/NTF.SND' /* Sound File to Play when user Connects..*/
soundfileD = 'Internet:amicom/NTF.SND' /* Sound File to Play when user Disconnects .*/
PlaySonud = 'Yes' /* Play A sample On Maching of a listed uesr */
/* Users to notifi when connecting/disconnecting. Add as many users as you
wish in the format of user.x = 'User Nick/Realname ' (x beinging the next
number starting from 0) */
user.0 = 'tibb'
user.1 = 'hparting'
user.2 = 'copex'
NumberOfUsers = 3 /* The Nummber of users you have enterd eg. user.0 = 1, user.1 = 2 ect */
CaseSensative = 'no' /* Yes Or No if yes then user.x must be the same as the user your checking for */
ShowReqC = 'yes' /* Show a requstor of users connecting.. (Yes or No)*/
ShowReqD = 'yes' /* Show a requstor of users Disconnecting.. (Yes or No)*/
ChkStart = 'no' /* Yes oR No ---> Read Docs First or leave set to NO */
/* Do Not Tuch Any Code Below Here Unless You Know What You Are Doing .... */
ADDRESS AMICOMSYS
OPTIONS RESULTS
NL = '0a'x
IF ~SHOW('LIBRARIES','rexxreqtools.library') THEN
IF ~ADDLIB('rexxreqtools.library',0,-30,0) THEN
EXIT(10)
tags='rt_reqpos=reqpos_centerwin' 'rtez_defaultresponse=0'
GET stem info. CLIENTLIST;
noc = info.numclients - 1
uflag = getclip('NoAmicomUsers')
if uflag = '' | uflag = 0 then do
call setclip('NoAmicomUsers',noc)
if upper(ChkStart) = 'YES' Then do
if upper(CaseSensative) = 'NO' then do; do i = 0 to NumberOfUsers - 1; user.i = upper(user.i); end; end
do ee = 0 to NumberOfUsers - 1
do e = 0 to noc
if user.ee = info.usernames.e | user.ee = info.realnames.e then do
call setclip(user.ee,'1')
SAY user.ee||' is OnLine .... '
end
if user.ee = upper(info.usernames.e) | user.ee = upper(info.realnames.e) then do
call setclip(user.ee,'1')
SAY user.ee||'Is OnLine .... '
end
end
end
end
exit
end
if uflag ~= noc then do
if upper(CaseSensative) = 'NO' then do; do i = 0 to NumberOfUsers - 1; user.i = upper(user.i); end; end
call setclip('NoAmicomUsers',noc)
if noc > uflag then do
usrN = info.usernames.noc
usrR = info.realnames.noc
usrH = info.hostnames.noc
if upper(CaseSensative) = 'NO' then do; usrN = upper(usrN);usrR = upper(usrR); usrH = upper(usrH); end
do x = 0 to NumberOfUsers - 1
if user.x = usrR | user.x = usrN then do
info = "User Name -: "|| usrN ||NL||"RealName -: "|| usrR ||NL||"Host -: "||usrH
sound = Player ||" "|| SoundfileC
If upper(PlaySonud) = 'YES' Then address command sound
If upper(ShowReqC) = 'YES' Then sel=rtezrequest(info,"oK","User Connected",tags)
call setclip(user.x,'1')
end
end
end
if noc < uflag then do
do xx = 0 to NumberOfUsers -1
seen = getclip(user.xx); fnd = 0
if seen = 1 then do
do x = 0 to noc
if user.xx = info.usernames.x | user.xx = info.realnames.x then fnd = 1
if user.xx = upper(info.usernames.x) | user.xx = upper(info.realnames.x) then fnd = 1
end
if fnd = 0 then do
call setclip(user.xx,'')
sound = Player ||" "|| SoundfileD
If upper(PlaySonud) = "YES" Then address command sound
If upper(ShowReqD) = 'YES' Then sel=rtezrequest(user.xx||" Has Left Amicomsys ","oK","User Left",tags)
end
end
end
end
end
exit